Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directional light to scene_system #762

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

scpeters
Copy link
Contributor

@scpeters scpeters commented Mar 9, 2021

Use hard-coded light parameters copied from visualizer0. The visualizer0 render_widget will need to be updated in order to parse this portion of the scene message.

This doesn't fix the textures, but it at least makes the shape of the vehicles more visible, so the visualizer is much more functional. I will post a screenshot.

Use hard-coded light parameters copied from visualizer0.
The visualizer0 render_widget will need to be updated
in order to parse this portion of the scene message.
@scpeters
Copy link
Contributor Author

scpeters commented Mar 9, 2021

Screenshot from 2021-03-09 12-20-18

@scpeters
Copy link
Contributor Author

scpeters commented Mar 9, 2021

also, this may address #204

agalbachicar
agalbachicar previously approved these changes Mar 10, 2021
Copy link
Collaborator

@agalbachicar agalbachicar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -39,6 +41,15 @@ class SceneSystem : public drake::systems::LeafSystem<double> {

int get_updated_pose_models_input_port_index() const { return updated_pose_models_input_port_index_; }

// This is the color used by the directional light added to each scene.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you make these three variables static?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in 247ad17

Copy link
Collaborator

@agalbachicar agalbachicar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@scpeters scpeters merged commit 0187e3a into master Mar 12, 2021
@scpeters scpeters deleted the scpeters/publish_directional_light branch March 12, 2021 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants